package utils;

import android.text.TextUtils;
import android.widget.ImageView;

import com.nostra13.universalimageloader.core.ImageLoader;

/**
 * Created by Administrator on 2017/3/25.
 */

public class MyImageLoader {
    public static void showImage(String url, ImageView imageView){
        if(!TextUtils.isEmpty(url)) {
            if(url.contains("https")) {
                String s = VariousUtils_Delete.noHttps(url);
                ImageLoader.getInstance().displayImage(s, imageView);
            }
            else{
                ImageLoader.getInstance().displayImage(url, imageView);
            }
        }
    }
}
